package liangtWorkSpace.factory.headFirstFactory.factory;

/**
 * @ClassName NYPizzaStore
 * @Description : 纽约披萨店
 * @Author : LiangT
 * @Date : 2020/7/3 11:20
 */
public class NYPizzaStore extends PizzaStore{
    @Override
    protected Pizza createPizza(String type) {
        Pizza pizza = null;
        switch (type){
            case "cheese":pizza = new NYPizza();break;
            default:break;
        }
        return pizza;
    }
}
